package com.majorty.mb.controller.response;

/**
 * @author zhangshuai
 * @date 2019-09-07 22:53
 */
public enum CodeEnum {

    SUCCESS(200, "成功！"),
    ERROR(201, "失败！");
    /**
     * 响应状态码
     */
    private final int code;
    /**
     * 响应提示
     */
    private final String message;

    CodeEnum(int code, String msg) {
        this.code = code;
        this.message = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
